package com.proxy.autoclick.common.util;

import java.util.Random;

public class RandomNumUtil {
	
	public static int getNumBetweenRange(int min, int max)
	{
		Random rand = new Random();

		// nextInt is normally exclusive of the top value,
		// so add 1 to make it inclusive
		int randomNum = rand.nextInt(max - min + 1) + min;
		return randomNum;
	}
	
	public static void main(String args []) throws InterruptedException
	{
		int i = 0;
		while(true)
		{
			i++;
			System.out.println(i + " % 5 = " + (i % 5));
			
			if(i % 5 == 0)
			{
			}
		}
		/*while(true)
		{
			Thread.sleep(200);
			System.out.print(getNumBetweenRange(5,10));
		}*/
	}

}
